package ar.uba.fi.tonyvaliente.tree;

public class MemoryBPlusTree<K extends Comparable<K>, V> extends BPlusTree<K, V> {
	public MemoryBPlusTree(int elementsPerNode) throws BPlusTreeException {
		BPlusTreeNodeReference<K, V> rootNodeReference = this.createReference();
		this.setRootNodeReference(rootNodeReference);
		rootNodeReference.setNode(new LeafBPlusTreeNode<K, V>(this, null));
		this.setElementsPerNode(elementsPerNode);
	}

	@Override
	protected BPlusTreeNodeReference<K, V> createReference() {
		return new MemoryBPlusTreeReference<K, V>();
	}

	@Override
	public void close() {
		// do nothing
	}
}
